UserCSS - 置換列表標記
參考來源:
以下配色以 '#A286C7' 為主色,詢問Copliot後給出的建議色
code:style.css
:root {
}
code:style.css
:root {
/* 番号なしリストのキャラクター */
/* --ul-bullet: '\f00c'; /* チェックマーク */
--ul-bullet: '\f068'; /* マイナス記号 */
/* --ul-bullet: '\f10c'; /* xまる */
/* --ul-bullet: '\f111'; /* まる */
/* --ul-bullet: '\f0c8'; /* 四角 */
/* --ul-bullet: '\f096'; /*x 四角 */
/* --ul-bullet: '\f580'; /* */
/* --ul-bullet: '\f140'; /* 二重丸*/
/* --ul-bullet: '\f005'; /* スター:クリスマス用 */
/* --ul-bullet: '\f1b2'; /* box */
/* --ul-bullet: '\f599'; /* 顔 */
/* --ul-bullet: '\f1b0'; /* 肉球:猫の日用 */
/* --ul-bullet: '\f6be'; /* ネコ */
/* --ul-bullet: '\f6d3'; /* イヌ */
/* --ul-bullet: '\f1dd'; /* パラグラフ記号 */
/* --ul-bullet: '\f683'; /* 祈り */
/* --ul-bullet: '\f5d7'; /* 骨 */
/* --ul-bullet: '\f004'; /* ハートマーク */
}
code:style.css
.line .indent-mark .dot::before {
display: block;
position: absolute;
right: -5px;
top: -10px;
font-family: 'Font Awesome 5 Free';
/* font-family: FontAwesome; /* old */
font-weight: 900;
font-size: 6px;
content: var(--ul-bullet, '\f068');
color: var(--li-color-0);
}
.line .indent-mark .dot {
background-color: transparent;
}
code:style.css
/* Size */
.line .indent-mark .c-0 + .dot::before {
font-size: 14px;
}
.line .indent-mark .c-1 + .dot::before {
font-size: 12px;
}
.line .indent-mark .c-2 + .dot::before {
font-size: 10px;
}
.line .indent-mark .c-3 + .dot::before {
font-size: 8px;
}
.line .indent-mark .c-4 + .dot::before {
font-size: 6px;
}
/* Color */
.line .indent-mark .c-0 + .dot::before {
color: var(--li-color-1);
}
.line .indent-mark .c-1 + .dot::before {
color: var(--li-color-3);
}
.line .indent-mark .c-2 + .dot::before {
color: var(--li-color-4);
}
.line .indent-mark .c-3 + .dot::before {
color: var(--li-color-6);
}
.line .indent-mark .c-4 + .dot::before {
color: var(--li-color-5);
}
code:style.css
:root {
/* 番号つきリストのキャラクター */
/* --ol-bullet: '\f111'; /* 丸 */
/* --ol-bullet: '\f292'; /* ハッシュ記号 '#' */
/* --ol-bullet: '\f2dc'; /* 雪:クリスマス用 */
--ol-bullet: '\f292'; /* シャープ */
}
.line.number-list .dot {
display: list-item; /* 表示する */
}
/* Icon */
.line.number-list .dot::before {
content: var(--ol-bullet, '\f292');
}
/* Size */
.line.number-list .c-0 + .dot::before {
font-size: 12px;
}
.line.number-list .c-1 + .dot::before {
font-size: 11px;
}
.line.number-list .c-2 + .dot::before {
font-size: 10px;
}
.line.number-list .c-3 + .dot::before {
font-size: 9px;
}
.line.number-list .c-4 + .dot::before {
font-size: 8px;
}
Settings.icon UserCSS.icon